package com.rzjm.exercise.module.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 问卷调查的用户填报数据对象 survey_user_record
 *
 * @author ruoyi
 * @date 2021-09-05
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("survey_user_record_info")
public class SurveyUserRecordInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    private Long recordId;
    /**
     * 问题id
     */
    private Integer questionId;

    private Integer questionType;

    /**
     * 业主微信id
     */
    private Integer userId;

    /**
     * 回答内容
     */
    private String answer;

    /**
     * 填报时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField(exist = false)
    private String questionTitle;

    @TableField(exist = false)
    private String question;

    @TableField(exist = false)
    private List<String> answers;
}
